package com.zhentao.controller;


import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ICdzInviteRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mp
 * @since 2024-12-25
 */
@RestController
@RequestMapping("/user/api/user/invite")
public class CdzInviteRecordController {

    @Resource
    private ICdzInviteRecordService cdzInviteRecordService;

    @GetMapping("/record")
    public ResponseResult record(){
        return cdzInviteRecordService.record();
    }

    @GetMapping("/recordCount")
    public ResponseResult recordCount(){
        return cdzInviteRecordService.recordCount();
    }
}

